package com.qiulingcloud.sys.service.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 0:21 2020/5/25
 * @Modified By：
 */
@Slf4j
@Service
@RocketMQMessageListener(consumerGroup = "order-user", topic = "order-topic")
public class MQClient implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        log.info("接收到了订单服务附送的信息：{}", s);
    }
}
